package com.kvchen.designer.ui
{
	import alternativa.gui.container.linear.VBox;
	import alternativa.gui.enum.Align;
	import alternativa.gui.theme.defaulttheme.container.panel.Panel;
	import alternativa.gui.theme.defaulttheme.controls.buttons.Button;
	import alternativa.gui.theme.defaulttheme.controls.slider.Slider;
	import alternativa.gui.theme.defaulttheme.controls.text.Label;
	import alternativa.gui.theme.defaulttheme.event.PanelEvent;
	
	import com.kvchen.designer.control.LabelSliderField;

	public class GlowFilterPanel extends Panel
	{
		public function GlowFilterPanel()
		{
			
			this.title = "GlowFilterPanel"
			this.closeButtonShow = true;
			this.addEventListener(PanelEvent.CLOSE, onClose);
			this.width = 300;
			this.height = 200;
			this.dragEnabled = true;
			
			var vbox:VBox = new VBox(5);
			vbox.align = Align.TOP_LEFT;
			
			/*var label:Label = new Label();
				label.text = "中国:";
			vbox.addChild(label);
			
			var slider:Slider = new Slider(100, 50, 100);
			vbox.addChild(slider);*/
			
			var alphaSlider:LabelSliderField = new LabelSliderField("Alpha:", 0, 100, 50);
			vbox.addChild(alphaSlider);
			
			var blurXSlider:LabelSliderField = new LabelSliderField("BlurX:", 0, 100, 50);
			vbox.addChild(blurXSlider);
			
			var blurYSlider:LabelSliderField = new LabelSliderField("BlurY:", 0, 100, 50);
			vbox.addChild(blurYSlider);
			
			var strengthSlider:LabelSliderField = new LabelSliderField("Strength:", 0, 100, 50);
			vbox.addChild(strengthSlider);
			
			var qualitySlider:LabelSliderField = new LabelSliderField("Quality:", 0, 100, 50);
			vbox.addChild(qualitySlider);
			
			var btn:Button = new Button();
			btn.label = "SampleBtn";
			vbox.addChild(btn);
			
			this.content = vbox;
		}
		
		protected function onClose(e:PanelEvent):void
		{
			trace("on close ");
		}
	}
}